﻿using Microsoft.AspNetCore.Mvc;

namespace WebApplication1.Controllers
{
    public class UserController : Controller
    {

        public async Task<string> GetUser()
        {
            var client = new HttpClient();
            //调用Service2
            var response = await client.GetAsync("https://localhost:7280/api/NEW");
            var result = await response.Content.ReadAsStringAsync();
            return result;
        }

    }
}
